package ks.client.controllers.requests;

import org.w3c.dom.Node;

import ks.client.UserContext;
import ks.client.lobby.Lobby;
import ks.framework.common.Message;
import ks.framework.interfaces.IProcessMessage;

/**
 * The controller for the table-clear request.
 */
public class TableClearController implements IProcessMessage {

	/** In case we need to process something. */
	Lobby lobby;
	
	/** Construct controller with lobby. */
	public TableClearController(Lobby lobby) {
		this.lobby = lobby;
	}

	/**
	 * Client has received table-clear message. Process it.
     * 
	 * @param m The message to process.
	 * @return true on success; false on failure.
	 */
	public boolean process(Message m) {
		// Get context
		UserContext context = lobby.getUserContext();
		
		// extract information from the message
		Node contents = m.contents();
		
		System.err.println("[TableClearController] Note: is not complete!");
		
		// temporary
		return false;
	}
}
